package com.Pawtrack.info.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.Pawtrack.common.annotation.Excel;
import com.Pawtrack.common.core.domain.BaseEntity;

/**
 * 宠物定位对象 pet_location
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
public class PetLocation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 定位记录ID */
    private Long id;

    /** 宠物ID */
    @Excel(name = "宠物ID")
    private Long petId;

    /** 经度 */
    @Excel(name = "经度")
    private Long longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private Long latitude;

    /** 定位时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "定位时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date locationTime;

    /** 地址描述 */
    @Excel(name = "地址描述")
    private String address;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setPetId(Long petId) 
    {
        this.petId = petId;
    }

    public Long getPetId() 
    {
        return petId;
    }

    public void setLongitude(Long longitude) 
    {
        this.longitude = longitude;
    }

    public Long getLongitude() 
    {
        return longitude;
    }

    public void setLatitude(Long latitude) 
    {
        this.latitude = latitude;
    }

    public Long getLatitude() 
    {
        return latitude;
    }

    public void setLocationTime(Date locationTime) 
    {
        this.locationTime = locationTime;
    }

    public Date getLocationTime() 
    {
        return locationTime;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("petId", getPetId())
            .append("longitude", getLongitude())
            .append("latitude", getLatitude())
            .append("locationTime", getLocationTime())
            .append("address", getAddress())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
